package com.antilia.infomaresme.data.dao.interfaces;

import java.util.List;

import com.antilia.infomaresme.data.dataobjects.Item;
import com.antilia.infomaresme.data.dataobjects.User;
import com.antilia.infomaresme.data.dataobjects.UserItemAlert;

/**
 * 
 * @author Ernesto
 *
 */
public interface IUserItemAlertsDao extends IDao<UserItemAlert> {

	
	List<UserItemAlert> getItems(User user, Item item, int start, int size);
	
	Long countItems(User user, Item item);
	
	/**
	 * Returns an alert or null if none if found.
	 * 
	 * @param user
	 * @param item
	 * @return
	 */
	UserItemAlert getAlert(User user, Item item);
	
	
	List<UserItemAlert> findAlerts(Item item);
	
}
